# vim: ft=make ts=4 sw=4

# Ready to use config for full build of the latest development version Qubes OS (aka "master").

GIT_BASEURL ?= https://github.com
GIT_PREFIX ?= QubesOS/qubes-
NO_SIGN ?= 1

BACKEND_VMM=xen

DIST_DOM0 ?= fc32
DISTS_VM ?= fc32 buster

MGMT_COMPONENTS = \
	mgmt-salt \
	mgmt-salt-base \
	mgmt-salt-base-topd \
	mgmt-salt-base-config \
	mgmt-salt-dom0-qvm \
	mgmt-salt-dom0-virtual-machines \
	mgmt-salt-dom0-update

COMPONENTS ?= \
    vmm-xen \
    core-libvirt \
    core-vchan-xen \
    core-qubesdb \
    core-qrexec \
    linux-utils \
    python-cffi \
    python-xcffib \
    python-quamash \
    python-objgraph \
    python-hid \
    python-u2flib-host \
    python-qasync \
    core-admin \
    core-admin-client \
    core-admin-addon-whonix \
    core-admin-linux \
    core-agent-linux \
    intel-microcode \
    linux-firmware \
    linux-kernel \
    artwork \
    grub2 \
    grub2-theme \
    gui-common \
    gui-daemon \
    gui-agent-linux \
    gui-agent-xen-hvm-stubdom \
    seabios \
    vmm-xen-stubdom-legacy \
    vmm-xen-stubdom-linux \
    app-linux-split-gpg \
    app-thunderbird \
    app-linux-pdf-converter \
    app-linux-img-converter \
    app-linux-input-proxy \
    app-linux-usb-proxy \
    app-linux-snapd-helper \
    app-shutdown-idle \
    app-yubikey \
    app-u2f \
    $(MGMT_COMPONENTS) \
    infrastructure \
    meta-packages \
    manager \
    desktop-linux-common \
    desktop-linux-kde \
    desktop-linux-xfce4 \
    desktop-linux-xfce4-xfwm4 \
    desktop-linux-i3 \
    desktop-linux-i3-settings-qubes \
    desktop-linux-awesome \
    desktop-linux-manager \
    grubby-dummy \
    linux-pvgrub2 \
    linux-gbulb \
    linux-scrypt \
    linux-template-builder \
    installer-qubes-os \
    qubes-release \
    pykickstart \
    blivet \
    lorax \
    lorax-templates \
    anaconda \
    anaconda-addon \
    linux-yum \
    linux-deb \
    tpm-extra \
    trousers-changer \
    antievilmaid \
    builder \
    builder-debian \
    builder-rpm

BUILDER_PLUGINS = builder-rpm builder-debian
BUILDER_PLUGINS += mgmt-salt

WINDOWS_COMPONENTS = \
                     vmm-xen-windows-pvdrivers \
                     windows-utils \
                     core-agent-windows \
                     gui-agent-windows \
                     installer-qubes-os-windows-tools \
                     builder-windows

# Uncomment this to enable windows tools build
#DISTS_VM += win7x64
#COMPONENTS += $(WINDOWS_COMPONENTS)
#BUILDER_PLUGINS += builder-windows

BRANCH_vmm_xen = xen-4.14
BRANCH_linux_kernel = stable-5.4

TEMPLATE_ROOT_WITH_PARTITIONS = 1

TEMPLATE_LABEL ?=
TEMPLATE_LABEL += fc30:fedora-30
TEMPLATE_LABEL += fc31:fedora-31
TEMPLATE_LABEL += fc32:fedora-32
TEMPLATE_LABEL += fc30+minimal:fedora-30-minimal
TEMPLATE_LABEL += fc31+minimal:fedora-31-minimal
TEMPLATE_LABEL += fc32+minimal:fedora-32-minimal
TEMPLATE_LABEL += fc30+xfce:fedora-30-xfce
TEMPLATE_LABEL += fc31+xfce:fedora-31-xfce
TEMPLATE_LABEL += fc32+xfce:fedora-32-xfce

TEMPLATE_LABEL += stretch:debian-9
TEMPLATE_LABEL += stretch+standard:debian-9
TEMPLATE_LABEL += stretch+xfce:debian-9-xfce
TEMPLATE_LABEL += buster:debian-10
TEMPLATE_LABEL += buster+standard:debian-10
TEMPLATE_LABEL += buster+xfce:debian-10-xfce
TEMPLATE_LABEL += bullseye:debian-11
TEMPLATE_LABEL += bullseye+standard:debian-11
TEMPLATE_LABEL += bullseye+xfce:debian-11-xfce

TEMPLATE_LABEL += stretch+whonix-gateway+minimal+no-recommends:whonix-gw-14
TEMPLATE_LABEL += stretch+whonix-workstation+minimal+no-recommends:whonix-ws-14
TEMPLATE_LABEL += buster+whonix-gateway+minimal+no-recommends:whonix-gw-15
TEMPLATE_LABEL += buster+whonix-workstation+minimal+no-recommends:whonix-ws-15

TEMPLATE_LABEL += centos7:centos-7
TEMPLATE_LABEL += centos7+minimal:centos-7-minimal
TEMPLATE_LABEL += centos7+xfce:centos-7-xfce
TEMPLATE_LABEL += centos8:centos-8
TEMPLATE_LABEL += centos8+minimal:centos-7-minimal
TEMPLATE_LABEL += centos8+xfce:centos-8-xfce

TEMPLATE_ALIAS ?=
TEMPLATE_ALIAS += stretch:stretch+standard
TEMPLATE_ALIAS += stretch+gnome:stretch+gnome+standard
TEMPLATE_ALIAS += stretch+minimal:stretch+minimal+no-recommends
TEMPLATE_ALIAS += buster:buster+standard
TEMPLATE_ALIAS += buster+gnome:buster+gnome+standard
TEMPLATE_ALIAS += buster+minimal:buster+minimal+no-recommends
TEMPLATE_ALIAS += bullseye:bullseye+standard
TEMPLATE_ALIAS += bullseye+gnome:bullseye+gnome+standard
TEMPLATE_ALIAS += bullseye+minimal:bullseye+minimal+no-recommends

TEMPLATE_ALIAS += whonix-gateway-14:stretch+whonix-gateway+minimal+no-recommends
TEMPLATE_ALIAS += whonix-workstation-14:stretch+whonix-workstation+minimal+no-recommends
TEMPLATE_ALIAS += whonix-gateway-15:buster+whonix-gateway+minimal+no-recommends
TEMPLATE_ALIAS += whonix-workstation-15:buster+whonix-workstation+minimal+no-recommends


# Uncomment this lines to enable CentOS template build
#DISTS_VM += centos7 centos8

# Uncomment this lines to enable Whonix template build
#DISTS_VM += whonix-gateway whonix-workstation
#COMPONENTS += template-whonix
#BUILDER_PLUGINS += template-whonix

# Uncomment this lines to enable Debian 9 template build
#DISTS_VM += stretch
#COMPONENTS += builder-debian
#BUILDER_PLUGINS += builder-debian

# Uncomment this line to enable Archlinux template build
#DISTS_VM += archlinux
#COMPONENTS += builder-archlinux
#BUILDER_PLUGINS += builder-archlinux

about::
	@echo "qubes-os-master.conf"
